package com.panshi.api.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/7 0007 上午 10:43
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("文章表实体类")
public class ArticleBean implements Serializable {

    @ApiModelProperty("文章Id")
    private int aid;
    @ApiModelProperty("发布人Id")
    private int uid;
    @ApiModelProperty("发布人姓名")
    private String name;
    @ApiModelProperty("发布人头像地址")
    private String headpath;
    @ApiModelProperty("类型Id")
    private int tid;
    @ApiModelProperty("类型名")
    private String tname;
    @ApiModelProperty("文章标题")
    private String a_title;
    @ApiModelProperty("文章简介")
    private String reasons;
    @ApiModelProperty("文章内容")
    private String a_content;
    @ApiModelProperty("下架时间")
    private Date time;
    @ApiModelProperty("阅读量")
    private int read_count;
    @ApiModelProperty("记录评论的个数")
    private int count;
    @ApiModelProperty("收藏数")
    private int collect_count;
    @ApiModelProperty("上架时间")
    private Date audit_time;
    @ApiModelProperty("状态(0启用/上架 1删除 2下架)")
    private String state;
    @ApiModelProperty("图片地址")
    private String imgpath;
    @ApiModelProperty("创建时间")
    private Date created_time;
    @ApiModelProperty("更新时间")
    private Date updated_time;
    @ApiModelProperty("文章总数量")
    private int sum;
    @ApiModelProperty("时间转换")
    private String dateTime;

}
